<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>

            <div id="post">

                <h3>Relatório de Lista Cadastrada</h3>

                <div id="stylized" class="myform">

                    <div id="relato">
                        <table>
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <td>#{ListaController.listaAux.id}</td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <th>Título</th>
                                    <td>#{ListaController.listaAux.titulo}</td>
                                </tr>
                                <tr>
                                    <th>Data de Criação</th>
                                    <td>#{ListaController.listaAux.dataCriacao}</td>
                                </tr>


                            </tbody>
                        </table>
                    </div>
                    <br />
                    <br />
                    
                    
                    <ui:repeat value="#{ListaController.questoesDaLista}"  var="questaoTemp" step="1" varStatus="status" >

                    <div id="stylized" class="questao" style="border-bottom: solid 1px; display: block">

                        <ui:include src="../questao/questaoView.xhtml" />

                    </div>

                </ui:repeat>
                    
                    
                    

                    <h:commandButton styleClass="button" action="#{PageManager.setPageListaCad}" value="Novo"  id="novo"/>
                    <h:commandButton styleClass="button" action="#{ListaController.editButton}" value="Editar" id="editar" />
                    <h:commandButton styleClass="button" action="#{ListaController.destroyButton}" value="Excluir" id="excluir"/>
                    <h:commandButton styleClass="button" action="#{ListaController.destroyButton}" value="Imprimir" id="imprimir"/>
                    <h:commandButton styleClass="button" action="#{ListaAlunoController.setPageListaAlunoCad}" value="Aplicar" id="aplicar"/>
                    <h:commandButton styleClass="button" action="#{ListaAlunoController.setPageListaAlunoCad}" value="Corrigir" id="corrigir"/>


                </div>
            </div>
        </ui:composition>

    </body>
</html>
